-- GENERATED SPELL FOR [Dustbelcher Wyrmhunter] --


function spell0_2716(pUnit, Event) --@Boulder,n/a--
pUnit:FullCastSpellOnTarget(9483,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2716', 2000, 1)
end

function spell1_2716(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2716', 2312, 1)
end

function Sorts_2716(pUnit, Event)
local choix_sorts_2716 = math.random(0, 1)
if choix_sorts_2716 == 0 then
pUnit:RegisterEvent('spell0_2716', 1, 1)
end
if choix_sorts_2716 == 1 then
pUnit:RegisterEvent('spell1_2716', 1, 1)
end
end

function mob2716_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2716', math.random(1500, 3000), 1)
end

function mob2716_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2716_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2716_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2716, 1, 'mob2716_Action')
RegisterUnitEvent(2716, 2, 'mob2716_Leave')
RegisterUnitEvent(2716, 3, 'mob2716_Kill')
RegisterUnitEvent(2716, 4, 'mob2716_Die')
